package ar.com.spsolutions.splibrary.book;

public class StarsCounterBuilder {

	private final StarsCounter toBuild;

	public StarsCounterBuilder() {
		this.toBuild = new StarsCounter();
	}

	public StarsCounterBuilder withStars(final int stars) {
		this.toBuild.setStars(stars);
		return this;
	}

	public StarsCounter build() {
		return this.toBuild;
	}

	public static StarsCounter createInstanceForTest() {
		return new StarsCounterBuilder()//
				.withStars(5)//
				.build();
	}
}
